package com.bckj.fastboot.auth.service;

import com.bckj.fastboot.auth.model.LoginRequest;
import com.bckj.fastboot.auth.model.LoginResponse;
import com.bckj.fastboot.auth.strategy.AuthStrategyFactory;
import org.springframework.stereotype.Service;

@Service
public class AuthService {

    public LoginResponse login(LoginRequest request) {
        return AuthStrategyFactory.getAuthStrategyOrThrow(request.getAuthType())
                .login(request);
    }
}
